package com.fulihui.usercore.core.repository;

import com.fulihui.usercore.dto.UserAddressDTO;

import java.util.List;

/**
 *
 * Created by Willard.Hu on 2016/5/24.
 */
public interface UserAddressRepository {

    long create(UserAddressDTO userAddressDTO);

    boolean update(UserAddressDTO userAddressDTO);

    boolean cancelUserAddrDefault(String userId);

    boolean delete(long id, String userId);

    UserAddressDTO queryByPK(long id, String userId);

    List<UserAddressDTO> queryByUser(String userId);
}
